﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Group.aspx.cs" Inherits="System_Group_Group" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../../js/Validate.js"></script>

    <script type="text/javascript" language="javascript">
    <!--
        function SelectAllCheckBox() {
            var form = document.forms[0];
            for (i = 0; i < form.elements.length; i++) {
                if (form.elements[i].checked == false) {
                    j = 0;
                }
                else {
                    j = 1;
                }
            } if (j == 0) {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = true;
                }
            }
            else {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = false;
                }
            }
        }
    //-->
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：系统管理-角色列表
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                    <tr>
                                        <td style="padding: 2px;">
                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                bordercolorlight="#b5d6e6">
                                                <tr style="height: 22px;">
                                                    <td style="width: 10%" align="right">
                                                        工作组编号：
                                                    </td>
                                                    <td style="width: 20%; padding-left: 2px;">
                                                        <asp:TextBox ID="txtvGroupNo" runat="server" Style="width: 180px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                                    <td style="width: 10%" align="right">
                                                        工作组名称：
                                                    </td>
                                                    <td style="width: 20%; padding-left: 2px;">
                                                        <asp:TextBox ID="txtvGroupName" runat="server" Style="width: 180px; height: 14px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                                    <td style="width: 20%; padding-left: 2px;">
                                                        <asp:ImageButton ID="ibtnSubmit" runat="server" ImageUrl="~/Images/btn/btn_add.gif"
                                                            OnClick="ibtnSubmit_Click" />
                                                        <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                            OnClick="ibtnReset_Click" />
                                                        <asp:ImageButton ID="ibtnDel" runat="server" ImageUrl="~/Images/btn/Delete.gif" OnClientClick="return confirm('确定删除吗？')"
                                                            OnClick="ibtnDel_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr valign="top" style="height: 671px;">
                                        <td style="padding: 2px">
                                            <asp:GridView ID="gvGroup" runat="server" AutoGenerateColumns="False" Width="100%"
                                                BorderWidth="1px" BorderColor="#B5D6E6" CellPadding="0" DataKeyNames="PID,vGroupNo"
                                                OnRowCancelingEdit="gvGroup_RowCancelingEdit" OnRowEditing="gvGroup_RowEditing"
                                                OnRowUpdating="gvGroup_RowUpdating" OnRowDataBound="gvGroup_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <input id="hchkSelect" type="checkbox" onclick="SelectAllCheckBox()" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkSelect" runat="server" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="序号">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LabNumber" runat="server" Text="<%#Container.DataItemIndex+1%>"></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="工作组编号">
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txt_vGroupNo" runat="server" Text='<%# Bind("vGroupNo") %>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_vGroupNo" runat="server" Text='<%# Bind("vGroupNo") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="30%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="工作组名称">
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txt_vGroupName" runat="server" Text='<%# Bind("vGroupName") %>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lab_vGroupName" runat="server" Text='<%# Bind("vGroupName") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="50%" />
                                                    </asp:TemplateField>
                                                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ButtonType="Image" CancelImageUrl="~/Images/del.gif"
                                                        EditImageUrl="~/Images/edt.gif" UpdateImageUrl="~/Images/edt.gif">
                                                        <ItemStyle Width="5%" />
                                                    </asp:CommandField>
                                                    <asp:TemplateField HeaderText="删除">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="ibtnDelete" runat="server" CommandArgument='<%# Bind("PID") %>'
                                                                ImageUrl="~/Images/del.gif" OnClientClick="return confirm('确定删除吗？')" OnClick="ibtnDelete_Click"
                                                                Style="height: 16px" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="5%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="background-image: url(../../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
